package com.zlm.user.emp.dao;

import com.zlm.common.base.BaseDao;
import com.zlm.common.entity.SysActivationDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * 验证码DAO
 * @Author: duyufu
 * @Date: 2019/4/8 13:29
 */
@Repository
public interface SysActivationDao extends BaseDao<SysActivationDO> {

    /**
     * 保存验证码
     * @param activation
     */
    void saveActivationCode(SysActivationDO activation);

    /**
     * 获取验证码数量
     * @param map
     * @return
     */
    Integer getCountActivation(Map<String, Object> map);

    /**
     * 获取短信验证码
     * @param activation
     * @return
     */
    SysActivationDO getActivation(SysActivationDO activation);

    /**
     * 修改验证码状态
     * @param id
     */
    void changeStatus(@Param("id") Integer id);
}
